package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_prod_info")
public class ProdInfo implements Serializable {
    /**
     * 信息ID
     */
    @TableId(value = "info_id", type = IdType.AUTO)
    private Integer infoId;

    /**
     * 商品ID
     */
    @TableField(value = "prod_id")
    private Integer prodId;

    /**
     * SKU
     */
    @TableField(value = "prod_sku")
    private String prodSku;

    /**
     * 商品名称
     */
    @TableField(value = "prod_name")
    private String prodName;

    /**
     * 售价
     */
    @TableField(value = "prod_price")
    private BigDecimal prodPrice;

    /**
     * 成本价
     */
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    /**
     * 库存
     */
    @TableField(value = "prod_stock")
    private Integer prodStock;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
    @TableField(exist = false)
    private Integer buyNum;
    private static final long serialVersionUID = 1L;
}